import {Dispatch} from 'redux'
import axios from 'axios'

export const getListData=()=>{
    return async (dispatch:Dispatch)=>{
        const {data} = await axios.get('/ListData')

        dispatch({
            type:"GET_LIST_DATA",
            list:data
        })
    }
}

